﻿/*----------------------------------------------------------------
// Copyright (C) 2016 通通优品版权所有。
// 命名空间: TongTongMall.MallWeb.Core.User.Services
// 类名：IUserDomainService
// 功能描述：N/A
// 
// 创建标识：Roc.Lee(李鹏鹏) 2017/8/29 11:52:46 TEC-ROCLEE Roc.Lee

// 修改标识：
// 修改描述：
// 
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Domain.Services;
using TongTongMall.MallWeb.Core.Authorization.Models;
using TongTongMall.MallWeb.Core.User.Commands;

namespace TongTongMall.MallWeb.Core.User.Services
{
    public interface IUserDomainService : IDomainService
    {
        /// <summary>
        /// 向授权服务器申请授权
        /// </summary>
        /// <param name="valueObject"></param>
        /// <returns></returns>
        Task<AccessTokenDto> Authorization(UserLoginCommand comand);

        /// <summary>
        /// 静默授权
        /// </summary>
        /// <param name="valueObject"></param>
        /// <returns></returns>
        Task<AccessTokenDto> SilenceAuthorization(UserLoginCommand comand);
    }
}
